import { http } from '@/core/http';
import { IWallpaperData, IWallpaperReq, IWallpaperRes, IWallpaperTypes } from '@/modules/wallpaper/api/type';

export const getWallpaperList = (params?: IWallpaperReq) => {
  return http.get<IWallpaperRes>({
    url: '/system/wallpaper',
    params,
    isLoading: false
  });
};
/**
 * 必应今日壁纸
 */
export const getWallpaperBing = () => {
  return http.get<IWallpaperData>({
    url: '/system/wallpaper-today',
    isLoading: false
  });
};

/**
 * 壁纸类型/目录
 */
export const getWallpaperTypes = () => {
  return http.get<IWallpaperTypes[]>({
    url: '/system/wallpaper-type',
    isLoading: false
  });
};
